import request from '@/utils/request'

// 查询产值kpi列表
export function listOrderkpi(query) {
  return request({
    url: '/system/orderkpi/page',
    method: 'get',
    params: query
  })
}

// 查询产值kpi详细
export function getOrderkpi(id) {
  return request({
    url: '/system/orderkpi/' + id,
    method: 'get'
  })
}

// 新增产值kpi
export function addOrderkpi(data) {
  return request({
    url: '/system/orderkpi',
    method: 'post',
    data: data
  })
}

// 修改产值kpi
export function updateOrderkpi(data) {
  return request({
    url: '/system/orderkpi',
    method: 'put',
    data: data
  })
}

// 删除产值kpi
export function delOrderkpi(id) {
  return request({
    url: '/system/orderkpi/' + id,
    method: 'delete'
  })
}

// 导出产值kpi
export function exportOrderkpi(query) {
  return request({
    url: '/system/orderkpi/export',
    method: 'get',
    params: query
  })
}